package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 权限表
 */
@Data
@Accessors(chain = true)
@TableName(value = "menu")
public class Menu {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名
     */
    @TableField(value = "title")
    private String title;

    /**
     * 父菜单id
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 显示顺序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 路由地址
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 路由路径
     */
    @TableField(value = "component")
    private String component;

    /**
     * 路由参数
     */
    @TableField(value = "query")
    private String query;

    /**
     * 菜单类型
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 菜单状态，0正常1不正常
     */
    @TableField(value = "stop")
    private Boolean stop;

    /**
     * 是否外连
     */
    @TableField(value = "external_link")
    private String externalLink;

    /**
     * 创建用户id
     */
    @TableField(value = "creat_by")
    private Integer creatBy;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 更新人用户id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 删除标志1未删除0删除
     */
    @TableField(value = "`enable`")
    private Boolean enable;
}